package com.sgb.kjwl.view.ui.adapter.packers;


import android.content.Context;

import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ItemHookBinding;
import com.sgb.kjwl.model.entity.PickSelectEntity2;
import com.sgb.kjwl.model.entity.user.AddressEntity;
import com.sgb.kjwl.view.ui.adapter.YoungBaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
*@author younghow
*@date 2021/9/8
*description:选择带钩
*/
public class HaveHookNoTypeAdapter<D extends PickSelectEntity2> extends YoungBaseRecycleAdapter<D> {

    public HaveHookNoTypeAdapter(Context context, List<D> data) {
        super(context, R.layout.item_hook, data);
    }

    @Override
    public void convert(ItemViewHolder holder, final D entity) {
        ItemHookBinding binding = (ItemHookBinding) holder.getmBinding();
        binding.tvName.setText(entity.getName());
        binding.tvName.getPaint().setFakeBoldText(holder.getItem().isSelected());
    }
}
